/**
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.common.web;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 异常跳转
 * @author limk
 * @date 2018年2月20日 下午3:36:58
 * @version 1.0
 */
@Component
@RequestMapping("/")
public class ExceptionServlert {
	
	@GetMapping(value = "/404")
	public String notFoudPage() {
		return "404";
	}

	@GetMapping(value = "/500")
	public String errorPage() {
		return "500";
	}
	
}
